/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.liwalo.action;

import com.liwalo.dao.UsuarioDAO;
import com.liwalo.entities.Usuario;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import java.util.Map;

/**
 *
 * @author Carlos
 */
public class Logout extends ActionSupport{
    
    public String logout() throws Exception{
        Map session = ActionContext.getContext().getSession();
        
        /*Almacenamos los datos del usuario en sesion*/
        session.remove("login");
        session.remove("userName");
        session.remove("usuario");
        
        return "logout";
    }
    
}
